package com.slipper.constants;

public class FlowConstants {
    /** 节点变量 */
    public static class FlowNode {
        /** 01、开始节点 */
        public static final String TYPE_START = "01";
        /** 10、人工节点 */
        public static final String TYPE_TASK = "10";
        /** 11、脚本节点 */
        public static final String TYPE_SCRIPT = "11";
        /** 20、分支节点 */
        public static final String TYPE_BRANCH = "20";
        /** 30、并行开始节点 */
        public static final String PARALLEL_NODE = "30";
        /** 31、并行结束节点 */
        public static final String MERGE_NODE = "31";
        /** 99、结束 */
        public static final String TYPE_END = "99";

        /** 1、手工输入 */
        public static final String DEAL_MAN_TYPE_MANUALLY = "1";
        /** 2、节点处理人 */
        public static final String DEAL_MAN_TYPE_NODE_DEALER = "2";
        /** 3、节点数据 */
        public static final String DEAL_MAN_TYPE_NODE_DATA = "3";
        /** 4、脚本 */
        public static final String DEAL_MAN_TYPE_SCRIPT = "4";

        /** 1、手工输入 */
        public static final String DEAL_ORG_TYPE_MANUALLY = "1";
        /** 2、节点处理部门 */
        public static final String DEAL_ORG_TYPE_NODE_DEALER = "2";
        /** 3、节点数据 */
        public static final String DEAL_ORG_TYPE_NODE_DATA = "3";
        /** 4、脚本 */
        public static final String DEAL_ORG_TYPE_SCRIPT = "4";

        /** 1、站内消息 */
        public static final String MESSAGE_TYPE_INNER = "1";
    }

    /** 线路条件变量 */
    public static class FlowLineCond {
        /** 字段 */
        public static final String COND_ORIGIN_FIELD = "1";
        /** 脚本 */
        public static final String COND_ORIGIN_SCRIPT = "2";
    }

    /** 实例变量 */
    public static class FlowInst {

        /** 01、进行中 */
        public static final String DEAL_STATUS_UNDERWAY = "01";
        /** 21、已办结 */
        public static final String DEAL_STATUS_COMPLETED = "21";
        /** 99、已完成 */
        public static final String DEAL_STATUS_FINISHED = "99";
    }

    /** 实例节点变量 */
    public static class FlowInstNode {
        /** 01、待处理 */
        public static final String DEAL_STATUS_PENDING = "01";
        /** 99、已处理 */
        public static final String DEAL_STATUS_FINISHED = "99";
    }

    /** 待办变量变量 */
    public static class FlowPending {
        /** 待办 */
        public static final String STATUS_PENDING = "01";
        /** 办结 */
        public static final String STATUS_FINISHED = "99";
    }
}
